package ru.gosoplata.service.conn 
{
	/**
	 * ...
	 * @author 
	 */
	internal class Command 
	{
		public static const MIN_TIMEOUT:uint = 10000;
		
		private static var _counter:uint=0;
		private var _id:uint = 0;
		
		private var _message:String = "WriteLog=ОШИБКА: пустое сообщение.";
		private var _responce:String = "Answer";
		private var _error:String = "Answer=ok";
		private var _timeout:uint = MIN_TIMEOUT;
		private var _lock:Boolean = false;
		private var _callBack:Function = null;
		private var _priority:uint = 0;
		
		public function get message():String 
		{
			return _message;
		}
		
		public function set message(value:String):void 
		{
			_message = value;
		}
		
		public function get responce():String 
		{
			return _responce;
		}
		
		public function set responce(value:String):void 
		{
			_responce = value;
		}
		
		public function get error():String 
		{
			return _error;
		}
		
		public function set error(value:String):void 
		{
			_error = value;
		}
		
		public function get timeout():uint 
		{
			return _timeout;
		}
		
		public function set timeout(value:uint):void 
		{
			_timeout = value;
		}
		
		public function get lock():Boolean 
		{
			return _lock;
		}
		
		public function set lock(value:Boolean):void 
		{
			_lock = value;
		}
		
		public function get id():uint 
		{
			return _id;
		}
		
		public function get callBack():Function 
		{
			return _callBack;
		}
		
		public function set callBack(value:Function):void 
		{
			_callBack = value;
		}
		
		public function get priority():uint 
		{
			return _priority;
		}
		
		public function set priority(value:uint):void 
		{
			_priority = value;
		}
		
		public function Command() 
		{
			_counter++;
			_id = _counter;
		}
	}
}